Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Multicluster] Fix cache options for controller Manager #6150

Conversation

antoninbas
Copy link
Contributor

A few issues were introduced by #5843 because of changes in the sigs.k8s.io/controller-runtime interface.

The biggest issue was that the call to ctrl.NewManager was not using the Options object populated earlier in the setupManagerAndCertController function. Instead it was creating and using a new, incomplete Options object.

Fixes #6149

@antoninbas
Copy link
Contributor Author

/test-multicluster-e2e

A few issues were introduced by antrea-io#5843 because of changes in the
sigs.k8s.io/controller-runtime interface.

The biggest issue was that the call to ctrl.NewManager was not using the
Options object populated earlier in the setupManagerAndCertController
function. Instead it was creating and using a new, incomplete Options
object.

Fixes antrea-io#6149

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas antoninbas force-pushed the fix-multicluster-controller-manager-cache-options branch from ff9536d to f7e8260 Compare March 26, 2024 22:41
@antoninbas
Copy link
Contributor Author

/test-multicluster-e2e

podNamespace: {},
}
} else {
// For a member, restict the cache to the controller's Namespace for the following objects.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luolanzone I am not entirely sure how these objects are determined.
However, I removed mcv1alpha1.MemberClusterAnnounce, which doesn't exist in the member cluster.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it should be removed if we separate the filter for the leader and member.

The decoder is no longer injected automatically, it needs to be
instantiated by us.

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas
Copy link
Contributor Author

/test-multicluster-e2e

Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas
Copy link
Contributor Author

jenkins-multicluster-e2e is passing

@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit 3b1169c into antrea-io:main Mar 27, 2024
50 of 55 checks passed
@antoninbas antoninbas deleted the fix-multicluster-controller-manager-cache-options branch March 27, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

antrea-mc-controller no longer deploys successfully
2 participants